package com.oig.sys.workflow.api.factory;

import com.oig.sys.workflow.api.AuditCallService;
import com.oig.sys.workflow.api.fallback.AuditCallServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class AuditCallServiceFallbackFactory implements FallbackFactory<AuditCallService> {

    @Override
    public AuditCallService create(Throwable cause) {
        AuditCallServiceFallBackImpl auditCallServiceFallBack = new AuditCallServiceFallBackImpl();
        auditCallServiceFallBack.setCause(cause);
        return auditCallServiceFallBack;
    }

}
